package com.zhongbei.mapper;


import com.zhongbei.pojo.Branch;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BranchMapper {
    //增
    int insertBranch(Branch branch);
    //删
    int deleteBranch(Integer branchId);
    //改
    int updateBranch(Integer branchId, Branch branch);
    //查 所有
    List<Branch> selectBranch();
    //查 根据组织id
    Branch selectBranchByBranchId(Integer branchId);
    //查 根据组织name
    List<Branch> selectBranchByBranchName(String branchName);
    //查 根据上级id
    List<Branch> selectBranchByParentBranchId(Integer parentBranchId);
}